  <div class='body'>
    <table>
      <tr>
        <th>
          姓名：
        </th>
        <td>
          <%= f.text_field :full_name %>
        </td>
      </tr>
      <tr>
        <th>
          性别：
        </th>
        <td>
          <%= f.radio_button :sex, :unknown, :class => :no %> <%= label :employee,:sex_unknown, t(:unknown) %>
          <%= f.radio_button :sex, :man, :class => :no %> <%= label :employee,:sex_man, t(:man)  %>
          <%= f.radio_button :sex, :woman, :class => :no %> <%= label :employee,:sex_woman, t(:woman)  %>
        </td>
      </tr>
      <tr>
        <th>
          手机号：
        </th>
        <td>
          <%= f.text_field :mobile %>
        </td>
      </tr>
      <tr>
        <th>
          地址：
        </th>
        <td>
          <%= f.text_field :address %>
        </td>
      </tr>
      <tr>
        <th>岗位：</th>
        <td>
          <table cellspacing='1' cellpadding='1'>
            <tr>
              <th></th>
              <th colspan='3' class='c'>岗位</th>
            </tr>
            <% Dept::Storefront.visible.all.each do |storefront| %>
            <tr>
              <th><%= storefront.name %></th>
              <td>
                <%= check_box_tag 'post_saler_in_dept_id[]',storefront.id,@employee.is_saler?(:dept_id => storefront.id), :id => "saler_in_storefront_#{storefront.id}", :class => :s %>
                <%= label_tag "saler_in_storefront_#{storefront.id}", t(:saler) %>
              </td>
              <td>
                <%= check_box_tag 'post_officer_in_dept_id[]',storefront.id,@employee.is_officer?(:dept_id => storefront.id), :id => "officer_in_storefront_#{storefront.id}", :class => :s %>
                <%= label_tag "officer_in_storefront_#{storefront.id}", t(:officer) %>
              </td>
              <td>
                <%= check_box_tag 'post_installer_in_dept_id[]',storefront.id,@employee.is_installer?(:dept_id => storefront.id), :id => "installer_in_storefront_#{storefront.id}", :class => :s %>
                <%= label_tag "installer_in_storefront_#{storefront.id}", t(:installer) %>
              </td>
            </tr>
            <% end %>
            <% Dept::Storehouse.visible.all.each do |storehouse| %>
            <tr>
              <th><%= storehouse.name %></th>
              <td colspan='3'>
                <%= check_box_tag 'post_store_admin_in_dept_id[]',storehouse.id,@employee.is_store_admin?(:dept_id => storehouse.id), :id => "store_admin_in_storehouse_#{storehouse.id}", :class => :s %>
                <%= label_tag "store_admin_in_storehouse_#{storehouse.id}", t(:store_admin) %>
              </td>
            </tr>
            <% end %>
          </table>
        </td>
      </tr>
      <tr>
        <th>
          备注：
        </th>
        <td>
          <%= f.text_area :remark, :rows => 10 %>
        </td>
      </tr>
      <tr>
        <th></th>
        <td>
          <%= link_to_function '保存', '$("#sf_form").submit()', :class => 'bb' %>
          <%= link_to '返回', storehouses_url , :class => 'bb go_back' %>          
        </td>
      </tr>
    </table>
  </div>
